package com.scheduling.machine.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 机器类型原料兼容性实体
 *
 * @author 开发团队
 * @since 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("machine_type_material_compatibility")
public class MachineTypeMaterialCompatibility implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 兼容性ID
     */
    @TableId(value = "compatibility_id", type = IdType.ASSIGN_ID)
    private String compatibilityId;

    /**
     * 机器类型ID
     */
    @TableField("machine_type_id")
    private String machineTypeId;

    /**
     * 原料ID
     */
    @TableField("material_id")
    private String materialId;

    /**
     * 是否兼容
     */
    @TableField("compatible")
    private Boolean compatible;

    /**
     * 不兼容原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
} 